<?php
require_once "../../libs/init.php";


function secureParams(&$value)
{
	if (get_magic_quotes_gpc())
	{
		$value = stripslashes($value);
	}
  $value = htmlspecialchars($value);
  $value = str_ireplace("script", "#script#", $value);
  $value = mysql_escape_string($value);
}


function secureGlobals()
{
    array_walk($_GET, 'secureParams');
    array_walk($_POST, 'secureParams');
}


$v = $_GET['v'];
echo $v . "<BR>.1....";
secureParams($v);
echo $v . "<BR>.1....";




?>